<script type="text/javascript">
    layui.use(['form', 'layer', 'index','treeSelect'], function () {
        var form = layui.form;
        var treeSelect = layui.treeSelect;
        $.ajax({
            url: "{{route('admin.base.station.list')}}",
            dataType: 'json',
            type: 'get',
            success: function (data) {
                $.each(data.data, function (index, item) {
                    $('#station').append(new Option(item.name, item.station_id));
                });
                layui.form.render("select");
            }
        })
        treeSelect.render({
            elem: '#industry_id',
            data: "{{route('admin.base.industry.tree')}}",
            placeholder: '请选择'
        });
    });

</script>
